package com.yuanheng100.ems4j.web.manager;

import com.yuanheng100.ems4j.model.Ems4jEmployee;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 用户登录session
 *
 * Created by wangguangshuo
 */
@Component
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class SessionManager implements Serializable
{
    private static final long serialVersionUID = -2014476608067102587L;

    /*用户对象*/
    private Ems4jEmployee ems4jEmployee;

    public Ems4jEmployee getEms4jEmployee()
    {
        return ems4jEmployee;
    }

    public void setEms4jEmployee(Ems4jEmployee ems4jEmployee)
    {
        this.ems4jEmployee = ems4jEmployee;
    }
}
